﻿using System;
using System.Runtime.Serialization;

namespace ZDV.IdentityModel.Tools
{
    public class MetadataException : Exception
    {
        public MetadataException() {}
        public MetadataException(String message) : base(message) {}
        public MetadataException(String message, Exception innerException) : base(message, innerException) { }
        public MetadataException(SerializationInfo info, StreamingContext context) : base(info, context) { }
    }

    public class MetadataNotReadableException : MetadataException
    {
        public MetadataNotReadableException() {}
        public MetadataNotReadableException(String message) : base(message) {}
        public MetadataNotReadableException(String message, Exception innerException) : base(message, innerException) { }
        public MetadataNotReadableException(SerializationInfo info, StreamingContext context) : base(info, context) { }
    }

    public class NoCertificateInMetadataException : MetadataException
    {
        public NoCertificateInMetadataException() {}
        public NoCertificateInMetadataException(String message) : base(message) {}
        public NoCertificateInMetadataException(String message, Exception innerException) : base(message, innerException) { }
        public NoCertificateInMetadataException(SerializationInfo info, StreamingContext context) : base(info, context) { }
    }

}
